package com.ocl.www.service;

import com.ocl.www.domain.LyUser;
import com.ocl.www.mapper.LyUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/6/10.
 */
@Service
public class LyUserService {
    @Autowired
    private LyUserMapper lyUserMapper;

    public LyUser getUserInfo(LyUser lyUser) throws  Exception {

        return lyUserMapper.getUserInfo(lyUser);

    }

    public int updateUser(LyUser lyUser) throws  Exception{
        return lyUserMapper.updateUser(lyUser);
    }
    public int addUser(LyUser lyUser) throws  Exception{
        return lyUserMapper.addUser(lyUser);
    }
}
